<include file="Common@header:header" />

    <!--<div id="position">{{$position}}</div>-->

    <div id="body">
        <div id="content">
            <ul class="list">

                <volist name="list" id="avo">
                    <li class="li<?php if(($i%2) == 0){ ?> even<?php } ?>">
                        {{/* 置顶部分，可自行定义结构和样式 */}}
                        <?php if( $vo['set_top'] == 1 ){ ?>
                        <dl class="dl" class="set_top">
                            <dt class="dt">
                            <div class="avatar"><img src="{{$vo.author}}" /></div>
                            <div class="title_i">
                                <a href="{{:U('Home/views/article',array('id'=>$avo.id))}}" class="title">{{$avo.title}} -- [置顶]</a>
                                <p class="info">
                                    <span class="time" title="发布日期">{{$avo.create_time|date=C('DEFAULT_DATE_FORMAT'),###}}</span>
                                    <span class="d_line">/</span>
                                    <span class="author" title="作者">{{$avo.author}}</span>
                                    <span class="d_line">/</span>
                                    <span class="click" title="围观">{{$avo.click}}</span>
                                    <span class="d_line">/</span>
                                    <span class="comment" title="评论">{{$avo.count}}</span>
                                    <span class="d_line">/</span>
                                    <span class="category" title="目录类别">{{$avo.cid}}</span>
                                </p>
                            </div>
                            <div class="clear"></div>
                            </dt>
                            <dd class="dd" style="display:none;">
                                <switch name="vo.type">
                            <case value="music"><div class="music"><embed src="{{$vo.music}}" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent"></embed></div></case>
                            <case value="video"><div class="video"><embed src="{{$vo.video}}" type="application/x-shockwave-flash" width="650" height="450" wmode="transparent"></embed></div></case>
                            </switch>
                            {{$avo.content}}
                            </dd>
                            <if condition="$vo['tags'] neq ''">
                                <dd class="dd tags" style="display:none;">TAG: {{$vo.tags}}</dd>
                            </if></dl>
                        {{/* 置顶部分结束，推荐部分开始 */}}
                        <?php }elseif( $vo['recommend'] == 1 ){ ?>
                        <dl class="dl" class="recommend">
                            <dt class="dt">
                            <div class="avatar"><img src="{{$vo.author}}" /></div>
                            <div class="title_i">
                                <a href="{{:U('Blog/views/article',array('aid'=>$avo.aid))}}" class="title">{{$avo.title}} -- [推荐]</a>
                                <p class="info">
                                    <span class="time" title="发布日期">{{$avo.create_time|date=C('DEFAULT_DATE_FORMAT'),###}}</span>
                                    <span class="d_line">/</span>
                                    <span class="author" title="作者">{{$avo.author}}</span>
                                    <span class="d_line">/</span>
                                    <span class="click" title="阅读次数">{{$avo.read_count}}</span>
                                    <span class="d_line">/</span>
                                    <span class="comment" title="评论">{{$avo.count}}</span>
                                    <span class="d_line">/</span>
                                    <span class="category" title="目录类别">{{$avo.cid}}</span>
                                </p>
                            </div>
                            <div class="clear"></div>
                            </dt>
                            <dd class="dd" style="display:none;">
                            <switch name="vo.type">
                            <case value="music"><div class="music"><embed src="{{$vo.music}}" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent"></embed></div></case>
                            <case value="video"><div class="video"><embed src="{{$vo.video}}" type="application/x-shockwave-flash" width="650" height="450" wmode="transparent"></embed></div></case>
                            </switch>
                            {{$avo.content}}
                            </dd>
                            <if condition="$vo['tags'] neq ''">
                                <dd class="dd tags" style="display:none;">TAG: {{$vo.tags}}</dd>
                            </if>
                        </dl>
                        {{/* 推荐部分结束，普通列表开始 */}}
                        <?php }else{ ?>
                        <dl class="dl">
                            <dt class="dt">
                            <div class="avatar"><img src="{{$vo.author}}" /></div>
                            <div class="title_i">
                                <a href="{{:U('Blog/Index/show',array('id'=>$avo['id']))}}" class="title">{{$avo.title}}</a>
                                <p class="info">
                                    <span class="time" title="发布日期">{{$avo.create_time|date='Y-m-d H:i:s',###}}</span>
                                    <span class="d_line">|</span>
                                    <span class="author" title="作者">{{$avo.author}}</span>
                                    <span class="d_line">|</span>
                                    <span class="click" title="围观">{{$avo.read_count}}</span>
                                    <span class="d_line">|</span>
                                    <span class="comment" title="评论">{{$avo.comment_count}}</span>
                                    <span class="d_line">|</span>
                                    <span class="category" title="目录类别">{{$avo.cid|getCategoryName}}</span>
                                </p>
                            </div>
                            <div class="clear"></div>
                            </dt>
                            <dd class="dd">
                                <switch name="vo.type">
                            <case value="music"><div class="music"><embed src="{{$vo.music}}" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent"></embed></div></case>
                            <case value="video"><div class="video"><embed src="{{$vo.video}}" type="application/x-shockwave-flash" width="650" height="450" wmode="transparent"></embed></div></case>
                            </switch>
                            {{$avo.content}}
                            </dd>
                            <if condition="$vo['tags'] neq ''">
                                <dd class="dd tags">TAG: {{$vo.tags}}</dd>
                            </if>
                        </dl>
                        <?php } ?>
                        {{/* 列表结束 */}}
                    </li>
                </volist>
            </ul>
            <div class="page">{{$page}}</div>
        </div>

        <div id="slidebar">
            <include file="Common@slidebar:slidebar" />
        </div>
        
       
       
       <div class="clear"></div>
    </div>
<include file="Common@footer:footer" />